//
//  TJPhotosTool.h
//  BaoDian
//
//  Created by mac on 2024/8/7.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>

NS_ASSUME_NONNULL_BEGIN

@interface TJPhotosTool : NSObject

+ (void)saveImageToPhotoLibrary:(UIImage *)image completion:(void (^)(NSError *error, NSString *localIdentifier))completion;
+ (void)saveVideoToPhotoLibrary:(NSURL *)videoURL completion:(void (^)(NSError *error, NSString *localIdentifier))completion;
+ (void)fetchImageWithLocalIdentifier:(NSString *)localIdentifier completion:(void (^)(UIImage *image))completion;
+ (void)fetchVideoWithLocalIdentifier:(NSString *)localIdentifier completion:(void (^)(AVAsset *videoAsset))completion;

@end

NS_ASSUME_NONNULL_END
